//
//  FPThreeImageTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/14.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPThreeImageTableViewCell.h"

@implementation FPThreeImageTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titlelbl = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(15), kImageH(5), kImageW(250), kImageH(25))];
        self.titlelbl.font = [UIFont systemFontOfSize:15];
        self.titlelbl.text = @"<<太平轮丶彼岸>>求生版预告";
        [self.contentView addSubview:_titlelbl];
        
        self.messlbl = [[UILabel alloc]initWithFrame:CGRectMake(_titlelbl.x, _titlelbl.y + _titlelbl.height, kImageW(200), kImageH(15))];
        self.messlbl.font = [UIFont systemFontOfSize:12];
        self.messlbl.textColor = [UIColor grayColor];
        self.messlbl.text = @"萨芬萨芬萨芬个法定化静态";
        [self.contentView addSubview:_messlbl];
        
        self.image1 = [[UIImageView alloc]initWithFrame:CGRectMake(kImageW(10), _messlbl.y + _messlbl.height + kImageH(5), (kScreenWidth - 4 * kImageW(10)) / 3, kImageH(55))];
        self.image1.backgroundColor = [UIColor orangeColor];
        [self.contentView addSubview:_image1];
        
        self.image2 = [[UIImageView alloc]initWithFrame:CGRectMake(_image1.x * 2 + _image1.width , _image1.y, _image1.width, _image1.height)];
        self.image2.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:_image2];
        
        self.image3 = [[UIImageView alloc]initWithFrame:CGRectMake(_image2.x + _image2.width +_image1.x, _image1.y, _image1.width, _image1.height)];
        self.image3.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:_image3];
        
        self.timelbl = [[UILabel alloc]initWithFrame:CGRectMake(_image1.x, _image1.y + _image1.height + kImageH(5), kImageW(150), kImageH(15))];
        self.timelbl.textColor = [UIColor grayColor];
        self.timelbl.font = [UIFont systemFontOfSize:12];
        self.timelbl.text = @"3小时前";
        [self.contentView addSubview:_timelbl];
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
